package org.gd.science.ulrmapper.annotations;

import org.gd.science.ulrmapper.factory.UrlParserFactory;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({
        //ElementType.METHOD,
        ElementType.FIELD
})
public @interface UrlParameter {

    /**
     * url parameter name
     *
     * default value: "##default"
     *
     * @return name
     */
    String value() default UrlParserFactory.DEFAULT_NAME_VALUE;

    /**
     *
     * @return default value
     */
    String defaultValue() default UrlParserFactory.DEFAULT_VALUE;

    /**
     *
     * @return required
     */
    boolean required() default true;

}
